// 数组指针
#include <stdio.h>

int main()
{
  // 处理二维数组
  int matrix[3][4] = {
      {1, 2, 3, 4},
      {5, 6, 7, 8},
      {9, 10, 11, 12}};

  // 指向二维数组的指针
  int (*p_matrix)[4] = matrix;

  for (int i = 0; i < 3; i++)
  {
    for (int j = 0; j < 4; j++)
    {
      printf("%d ", p_matrix[i][j]);
      // 或 printf("%d ", (*(p_matrix + i))[j]);
    }
    printf("\n");
  }
  return 0;
}